#include<stdio.h>
#include<string.h>
#include<stdlib.h>

// -数组越界测试

int
main(int argc,char * argv []){

	int x = -2;
	int arr[] = {0,1,2,3,4};
	int y = 15;
	printf("&x    = %p, &y    = %p\n",&x,&y);
	printf("&arr[0]   = %p, &arr[4]    = %p\n",&arr[0],&arr[4]);

	printf("x = %d, y = %d\n",x,y);
	arr[-1] = 7;
	arr[5] = -23;
	printf("x = %d, y = %d\n",x,y);
	arr[6] = 108;
	printf("x = %d, y = %d\n",x,y);
	arr[7] = -356;
        printf("x = %d, y = %d\n",x,y);	
	return EXIT_SUCCESS;
}
